package com.zbkj.crmeb.plat.dto;

import com.alibaba.fastjson.JSON;
import com.zbkj.crmeb.plat.by.dto.PoizonPushInfo;
import com.zbkj.crmeb.plat.by.dto.TikTokProductInfo;
import com.zbkj.crmeb.plat.by.dto.TikTokPushInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: wsl
 * @date: 2024/3/10 0010 21:31
 * @ClassName: PlatProductRequest
 */
public class PlatProductRequest {

    private String productId;

    private String brandId;

    private String categoryId;

    private PoizonPushInfo poizonPushInfo;
    private TikTokPushInfo tikTokPushInfo;

    private TikTokProductInfo tikTokProductInfo;
    private String platType;

    private String operateType;

    private Boolean syncTask;

    private List<skuInfo> platSkuInfos;


    public PoizonPushInfo getPoizonPushInfo() {
        return poizonPushInfo;
    }


    public void setPoizonPushInfo(PoizonPushInfo poizonPushInfo) {
        this.poizonPushInfo = poizonPushInfo;
    }

    public TikTokPushInfo getTikTokPushInfo() {
        return tikTokPushInfo;
    }

    public void setTikTokPushInfo(TikTokPushInfo tikTokPushInfo) {
        this.tikTokPushInfo = tikTokPushInfo;
    }

    public Boolean getSyncTask() {
        return syncTask;
    }

    public void setSyncTask(Boolean syncTask) {
        this.syncTask = syncTask;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public List<skuInfo> getPlatSkuInfos() {
        return platSkuInfos;
    }

    public void setPlatSkuInfos(List<skuInfo> platSkuInfos) {
        this.platSkuInfos = platSkuInfos;
    }

    public String getPlatType() {
        return platType;
    }

    public void setPlatType(String platType) {
        this.platType = platType;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public static class skuInfo{
        private String productId;
        private String sourceSkuId;
        private BigDecimal price;

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public String getSourceSkuId() {
            return sourceSkuId;
        }

        public void setSourceSkuId(String sourceSkuId) {
            this.sourceSkuId = sourceSkuId;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }
    }

    public static void main(String[] args) {
        String str = "{\"brandId\":\"品牌ID\",\"categoryId\":\"类目ID\",\"productId\":184816486,\"platSkuInfos\":[{\"productId\":184816486,\"sourceSkuId\":\"5-290796989\",\"price\":\"6371.77\"},{\"productId\":184816486,\"sourceSkuId\":\"5-290796992\",\"price\":\"4224.16\"}]}";
        PlatProductRequest platProductRequest = JSON.parseObject(str, PlatProductRequest.class);
        System.out.println();
    }
}
